import request from '@/utils/request'

// 查询巡查警报列表
export function listRbPatrolAlarm(query) {
  return request({
    url: '/rb/rbPatrolAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询巡查警报详细
export function getRbPatrolAlarm(id) {
  return request({
    url: '/rb/rbPatrolAlarm/' + id,
    method: 'get'
  })
}

// 新增巡查警报
export function addRbPatrolAlarm(data) {
  return request({
    url: '/rb/rbPatrolAlarm',
    method: 'post',
    data: data
  })
}

// 修改巡查警报
export function updateRbPatrolAlarm(data) {
  return request({
    url: '/rb/rbPatrolAlarm',
    method: 'put',
    data: data
  })
}

// 删除巡查警报
export function delRbPatrolAlarm(id) {
  return request({
    url: '/rb/rbPatrolAlarm/' + id,
    method: 'delete'
  })
}
